package com.example.hxds.bff.customer.feign;

import com.example.hxds.bff.customer.controller.form.EstimateOrderMileageAndMinuteForm;
import com.example.hxds.common.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;


/**
 * @program: hxds
 * @description: feign代理Map-地图微服务的相关接口
 * @author: noah2021
 * @date: 2023-01-14 01:01
 **/
@FeignClient(value = "hxds-mps")
public interface MpsServiceApi {

    /**
     * 预估订单价格
     * @param form
     * @return
     */
    @PostMapping("/map/estimateOrderMileageAndMinute")
    R estimateOrderMileageAndMinute(EstimateOrderMileageAndMinuteForm form);


    /**
     * 搜索合适的司机
     * @param form
     * @return
     */
    @PostMapping("/driver/location/searchBefittingDriverAboutOrder")
    R searchBefittingDriverAboutOrder(SearchBefittingDriverAboutOrderForm form);


    /**
     * 搜索订单位置缓存
     * @param form
     * @return
     */
    @PostMapping("/driver/location/searchOrderLocationCache")
    R searchOrderLocationCache(SearchOrderLocationCacheForm form);
}

